# coding=utf-8
"""
User 模型dao操作
"""
from mynest.base.tools.databasetools import Sqlite3Tools


class UserDao:
    def load(self, account, password):
        """
        加载一个账户
        :param account:
        :param password:
        :return:
        """
        db = Sqlite3Tools()
        sql = 'select * from user where account="' + account + '" and password="' + password + '"'
        return db.load(sql)
